<template>
  <div id="live_house">
    <div
      v-loading="loading"
      v-if="loading"
      class="loading finishLoading"
      element-loading-text="拼命加载中..."
      element-loading-spinner="el-icon-loading"
    ></div>
    <template v-if="!loading">
      <div class="title" v-if="data00">
        <p>
          <span></span> 直播预告
        </p>
        <p>共{{ data00.length }}场直播预告</p>
      </div>
      <el-carousel height="210px" arrow="never" indicator-position="none" :interval="3000">
        <el-carousel-item>
          <ul class="ul01">
            <li v-for="(item, index) in liveForeshow[0]" :key="'asdfasdf' + index">
              <section>
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" />
                  <div v-show="false">
                    <p class="livingGif">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </p>
                    <!-- <span>直播中</span> -->
                  </div>
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">
                    {{ item.nickname
                    }}
                    <img
                      src="@/assets/meng/search_result02.png"
                      v-if="false"
                    />
                    <img v-if="false" src="@/assets/meng/search_result03.png" />
                  </p>

                  <!-- <el-tooltip effect="light"
                          :content=" item.introduce "
                          :hide-after="2000"
                          placement="top"
                  popper-class="mytooltip">-->
                  <p class>粉丝：{{ format_num(item.total_fans) }}</p>
                  <!-- </el-tooltip> -->
                  <p class="dot" v-if="false">
                    #美好生活思想家
                    抖音+抖音抖音抖音抖音抖音抖音抖音+淘宝+小红书…小红书…小红书…
                  </p>
                </div>
              </section>
              <div>
                <!-- <p><img src='@/assets/meng/live_house.png'><span>直播预告</span></p> -->
                <p>{{ timestamp(item.notice_time, "M-D h:m") }}</p>
              </div>
              <p
                class="pointer"
                v-if="item.his_count != 0"
                @click="show_pop(item.author_id, 0)"
              >查看历史直播 {{ item.his_count }} 场</p>
              <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
            </li>
          </ul>
        </el-carousel-item>
        <el-carousel-item>
          <ul class="ul01">
            <li v-for="(item, index) in liveForeshow[1]" :key="'asdfasdf' + index">
              <section>
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" />
                  <div v-show="false">
                    <p class="livingGif">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </p>
                    <!-- <span>直播中</span> -->
                  </div>
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">
                    {{ item.nickname
                    }}
                    <img
                      src="@/assets/meng/search_result02.png"
                      v-if="false"
                    />
                    <img v-if="false" src="@/assets/meng/search_result03.png" />
                  </p>

                  <!-- <el-tooltip effect="light"
                          :content=" item.introduce "
                          :hide-after="2000"
                          placement="top"
                  popper-class="mytooltip">-->
                  <p class>粉丝：{{ format_num(item.total_fans) }}</p>
                  <!-- </el-tooltip> -->
                  <p class="dot" v-if="false">
                    #美好生活思想家
                    抖音+抖音抖音抖音抖音抖音抖音抖音+淘宝+小红书…小红书…小红书…
                  </p>
                </div>
              </section>
              <div>
                <!-- <p><img src='@/assets/meng/live_house.png'><span>直播预告</span></p> -->
                <p>{{ timestamp(item.notice_time, "M-D h:m") }}</p>
              </div>
              <p
                class="pointer"
                v-if="item.his_count != 0"
                @click="show_pop(item.author_id, 0)"
              >查看历史直播 {{ item.his_count }} 场</p>
              <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
            </li>
          </ul>
        </el-carousel-item>
        <el-carousel-item>
          <ul class="ul01">
            <li v-for="(item, index) in liveForeshow[2]" :key="'asdfasdf' + index">
              <section>
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" />
                  <div v-show="false">
                    <p class="livingGif">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </p>
                    <!-- <span>直播中</span> -->
                  </div>
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">
                    {{ item.nickname
                    }}
                    <img
                      src="@/assets/meng/search_result02.png"
                      v-if="false"
                    />
                    <img v-if="false" src="@/assets/meng/search_result03.png" />
                  </p>

                  <!-- <el-tooltip effect="light"
                          :content=" item.introduce "
                          :hide-after="2000"
                          placement="top"
                  popper-class="mytooltip">-->
                  <p class>粉丝：{{ format_num(item.total_fans) }}</p>
                  <!-- </el-tooltip> -->
                  <p class="dot" v-if="false">
                    #美好生活思想家
                    抖音+抖音抖音抖音抖音抖音抖音抖音+淘宝+小红书…小红书…小红书…
                  </p>
                </div>
              </section>
              <div>
                <!-- <p><img src='@/assets/meng/live_house.png'><span>直播预告</span></p> -->
                <p>{{ timestamp(item.notice_time, "M-D h:m") }}</p>
              </div>
              <p
                class="pointer"
                v-if="item.his_count != 0"
                @click="show_pop(item.author_id, 0)"
              >查看历史直播 {{ item.his_count }} 场</p>
              <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
            </li>
          </ul>
        </el-carousel-item>
        <el-carousel-item>
          <ul class="ul01">
            <li v-for="(item, index) in liveForeshow[3]" :key="'asdfasdf' + index">
              <section>
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" />
                  <div v-show="false">
                    <p class="livingGif">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </p>
                    <!-- <span>直播中</span> -->
                  </div>
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">
                    {{ item.nickname
                    }}
                    <img
                      src="@/assets/meng/search_result02.png"
                      v-if="false"
                    />
                    <img v-if="false" src="@/assets/meng/search_result03.png" />
                  </p>

                  <!-- <el-tooltip effect="light"
                          :content=" item.introduce "
                          :hide-after="2000"
                          placement="top"
                  popper-class="mytooltip">-->
                  <p class>粉丝：{{ format_num(item.total_fans) }}</p>
                  <!-- </el-tooltip> -->
                  <p class="dot" v-if="false">
                    #美好生活思想家
                    抖音+抖音抖音抖音抖音抖音抖音抖音+淘宝+小红书…小红书…小红书…
                  </p>
                </div>
              </section>
              <div>
                <!-- <p><img src='@/assets/meng/live_house.png'><span>直播预告</span></p> -->
                <p>{{ timestamp(item.notice_time, "M-D h:m") }}</p>
              </div>
              <p
                class="pointer"
                v-if="item.his_count != 0"
                @click="show_pop(item.author_id, 0)"
              >查看历史直播 {{ item.his_count }} 场</p>
              <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
            </li>
          </ul>
        </el-carousel-item>
        <el-carousel-item>
          <ul class="ul01">
            <li v-for="(item, index) in liveForeshow[4]" :key="'asdfasdf' + index">
              <section>
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" />
                  <div v-show="false">
                    <p class="livingGif">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </p>
                    <!-- <span>直播中</span> -->
                  </div>
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">
                    {{ item.nickname
                    }}
                    <img
                      src="@/assets/meng/search_result02.png"
                      v-if="false"
                    />
                    <img v-if="false" src="@/assets/meng/search_result03.png" />
                  </p>

                  <!-- <el-tooltip effect="light"
                          :content=" item.introduce "
                          :hide-after="2000"
                          placement="top"
                  popper-class="mytooltip">-->
                  <p class>粉丝：{{ format_num(item.total_fans) }}</p>
                  <!-- </el-tooltip> -->
                  <p class="dot" v-if="false">
                    #美好生活思想家
                    抖音+抖音抖音抖音抖音抖音抖音抖音+淘宝+小红书…小红书…小红书…
                  </p>
                </div>
              </section>
              <div>
                <!-- <p><img src='@/assets/meng/live_house.png'><span>直播预告</span></p> -->
                <p>{{ timestamp(item.notice_time, "M-D h:m") }}</p>
              </div>
              <p
                class="pointer"
                v-if="item.his_count != 0"
                @click="show_pop(item.author_id, 0)"
              >查看历史直播 {{ item.his_count }} 场</p>
              <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
            </li>
          </ul>
        </el-carousel-item>
      </el-carousel>

      <!-- 更多直播预告（下拉按钮） -->
      <!-- <p class="see_more pointer"
         v-if="data.length<5"
         @click="data = response01.concat().splice(0)">查看更多直播预告<i class="el-icon-arrow-down"></i></p>
      <p class="see_more pointer "
         v-else
      @click="data = response01.concat().splice(0,4)">收起直播预告<i class="el-icon-arrow-up"></i></p>-->
      <div class="title">
        <p>
          <span></span> 正在直播
          <!-- <span @click="$router.push('/talent_main/bring_goods')">查看更多<i class="el-icon-arrow-right"></i></span> -->
        </p>
        <p>
          {{ nowDate }}
          <span style="margin-left:7px;">{{ nowWeek }}</span>
        </p>
      </div>
      <ul class="ul02">
        <li v-for="(item, index) in response03.slice(0, 8)" :key="'sss' + index">
          <section>
            <div class="daping">
              <div>
                <img :src="item.logo" @click="go_to_page02(item.room_id)" v-errorImg:live />
                <div>
                  <p class="livingGif">
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                  </p>
                </div>
              </div>
              <div>
                <p class="dot" @click="go_to_page02(item.room_id)">
                  {{ item.nickname
                  }}
                  <img
                    v-if="false"
                    src="@/assets/meng/search_result02.png"
                  />
                  <img v-if="false" src="@/assets/meng/search_result03.png" />
                </p>
                <p>粉丝 {{ format_num(item.total_fans) }}</p>
              </div>
            </div>
            <p>
              <button @click="go_to_page02(item.room_id)">实时大屏</button>
            </p>
          </section>
          <ul>
            <!-- <li>
              <p>{{ format_num(item.sound) }}</p>
              <p>获得音浪</p>
            </li>-->
            <li>
              <p>{{ format_num(item.total_people) }}</p>
              <p>累计观看人次</p>
            </li>
            <li>
              <p>{{ format_num(item.live_volume) }}</p>
              <p>直播销量</p>
            </li>
            <li>
              <p>{{ format_num(item.live_sales) }}</p>
              <p>直播销售额</p>
            </li>
          </ul>
          <p
            class="pointer"
            v-if="item.his_count != 0"
            @click="show_pop(item.author_id, 1)"
          >查看历史直播 {{ item.his_count }} 场</p>
          <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
        </li>
      </ul>
      <!-- 直播回顾 -->
      <div class="title mb__17">
        <p>
          <span></span> 直播回顾
        </p>
        <p></p>
      </div>
      <section
        v-for="(item_wrapper, index__wrapper) in response04"
        :key="'ssssss' + index__wrapper"
      >
        <p class="time">{{ item_wrapper.time }}</p>
        <ul class="ul03">
          <li v-for="(item, index) in item_wrapper.data.slice(0, 4)" :key="'erqtq' + index">
            <section>
              <div class="box_left">
                <div>
                  <img :src="item.logo" @click="goDetails(item.author_id)" v-errorImg:live />
                </div>
                <div>
                  <p class="dot" @click="goDetails(item.author_id)">{{ item.nickname }}</p>
                  <p>粉丝 {{ format_num(item.total_fans) }}</p>
                </div>
              </div>
              <div class="box_right">
                <button @click="go_to_page01(item.room_id)">直播回顾</button>
              </div>
            </section>
            <ul class="num">
              <!-- <li>
                <p>{{ format_num(item.sound) }}</p>
                <p>获得音浪</p>
              </li>-->
              <li>
                <p>{{ format_num(item.total_people) }}</p>
                <p>累计观看人次</p>
              </li>
              <li>
                <p>{{ format_num(item.live_volume) }}</p>
                <p>直播销量</p>
              </li>
              <li>
                <p>{{ format_num(item.live_sales) }}</p>
                <p>直播销售额</p>
              </li>
            </ul>
            <p
              class="pointer"
              v-if="item.his_count != 0"
              @click="show_pop(item.author_id, 2)"
            >查看历史直播 {{ item.his_count }} 场</p>
            <p class="gray" v-else>查看历史直播 {{ item.his_count }} 场</p>
          </li>
        </ul>
      </section>
    </template>
    <!-- 弹窗 -->
    <el-dialog :visible.sync="dialog" width="790px" class="dialog">
      <!-- <div v-loading="loading01"
           element-loading-text="拼命加载中"
      element-loading-spinner="el-icon-loading">-->
      <section class="header" v-if="response02">
        <div>
          <img :src="response02.author.logo" @click="show_date()" />
          <div v-if="false">
            <p class="livingGif">
              <span></span>
              <span></span>
              <span></span>
              <span></span>
            </p>
            <!-- <span>直播中</span> -->
          </div>
        </div>
        <div>
          <p class="dot" @click="show_date()">
            {{ response02.author.nickname
            }}
            <img
              v-if="response02.author.verify_type == 1"
              src="@/assets/meng/search_result02.png"
            />
            <img v-if="response02.author.verify_type == 2" src="@/assets/meng/search_result03.png" />
          </p>

          <p>简介：{{ response02.author.introduce }}</p>
        </div>
      </section>
      <p class="count">
        共
        <span>{{ total }}</span>场直播
      </p>
      <table class="table table02">
        <thead>
          <tr>
            <th>直播间</th>
            <th>开播时间</th>
            <th>销量</th>
            <th>销售额</th>
            <!-- <th>操作</th> -->
          </tr>
        </thead>
        <tbody>
          <tr v-for="(item, index) in response02 && response02.livehis" :key="'table' + index">
            <td class="td td_01">
              <div>
                <img :src="item.room_logo" @click="go_to_page01(item.room_id)" v-errorImg:live />
                <section>
                  <div>
                    <img v-if="item.is_shop" src="../../../assets/meng/pop01.png" />
                    <img v-if="item.is_red" src="../../../assets/meng/pop02.png" />
                    <span class="dot" @click="go_to_page01(item.room_id)">
                      {{
                      item.room_title
                      }}
                    </span>
                  </div>
                  <div>
                    直播时长：{{
                    format_timehm((item.end_time - item.begin_time) * 1000)
                    }}
                  </div>
                </section>
              </div>
            </td>
            <td class="td td_02">
              <div>{{ timestamp(item.begin_time, "Y-M-D h:m") }}</div>
            </td>
            <!-- <td class="td td_03">
              <div>{{ format_num(item.sound) }}</div>
            </td>-->
            <td class="td td_04">
              <div>{{ format_num(item.volume) }}</div>
            </td>
            <td class="td td_05">
              <div>{{ format_num(item.sales) }}</div>
            </td>
            <!-- <td class="td td_06">
              <button @click="go_to_page01(item.room_id)">查看详情</button>
            </td>-->
          </tr>
        </tbody>
      </table>
      <div v-if="total <= 5" class="Popupline">我是有底线的~</div>
      <div class="pageBox" v-if="response02 && total > 5">
        <!-- <p>我是有底线的～</p> -->
        <el-pagination
          background
          :page-size="5"
          layout="prev, pager, next, jumper"
          :total="total"
          :current-page.sync="page02"
          :hide-on-single-page="true"
        ></el-pagination>
        <!-- :hide-on-single-page="true" -->
      </div>
      <!-- </div> -->
    </el-dialog>
    <p class="bottom" v-if="!loading">我是有底线的~</p>
  </div>
</template>
<script>
export default {
  name: 'live_house',
  components: {},
  data() {
    return {
      // 获取当前时间
      timer: null,
      nowWeek: '',
      nowDate: '',
      nowTime: '',

      loading: true,
      total: 100,
      dialog: false,
      page02: 1,
      response02: null,
      author_id: '',
      num: '',
      //   弹窗
      response01: [],
      data: [],
      // 预播
      response03: [],
      // 直播
      response04: [],
      liveForeshow: []
      // 回顾
      // loading01: true,
    };
  },
  computed: {},
  created() {
    this.get_data_all();
    this.$watch('page02', (newValue, oldValue) => {
      this.get_data02();
    });
  },
  mounted() {
    this.timer = setInterval(() => {
      this.setNowTimes();
    }, 1000);
  },
  methods: {
    // 获取当前时间
    setNowTimes() {
      let myDate = new Date();
      // console.log(myDate)
      let wk = myDate.getDay();
      let yy = String(myDate.getFullYear());
      let mm = myDate.getMonth() + 1;
      let dd = String(myDate.getDate() < 10 ? '0' + myDate.getDate() : myDate.getDate());
      let hou = String(myDate.getHours() < 10 ? '0' + myDate.getHours() : myDate.getHours());
      let min = String(myDate.getMinutes() < 10 ? '0' + myDate.getMinutes() : myDate.getMinutes());
      let sec = String(myDate.getSeconds() < 10 ? '0' + myDate.getSeconds() : myDate.getSeconds());
      let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
      let week = weeks[wk];
      this.nowDate = yy + '/' + mm + '/' + dd;
      this.nowTime = hou + ':' + min + ':' + sec;
      this.nowWeek = week;
    },
    show_pop(parm, num) {
      this.author_id = parm;
      // console.log(parm);
      this.page02 = 1;
      this.get_data02();
      this.dialog = true;
      // 判断点击的是那个模块
      this.numm = num;
    },
    // 弹窗后的点击到详情页
    show_date() {
      this.get_data02();
      if (this.numm == 0) {
        let router = this.$router.resolve({
          path: `/talent_main/tdetails/${this.author_id}/${0}`
        });
        window.open(router.href, '_blank');
      }
      if (this.numm == 1) {
        let router = this.$router.resolve({
          path: `/talent_main/tdetails/${this.author_id}/${0}`
        });
        window.open(router.href, '_blank');
      }
      if (this.numm == 2) {
        let router = this.$router.resolve({
          path: `/talent_main/tdetails/${this.author_id}/${0}`
        });
        window.open(router.href, '_blank');
      }
    },
    get_data_all() {
      let that = this;
      this.loading = true;
      this.$axios
        .all([that.part01(), that.part02(), that.part03()])
        .then(
          this.$axios.spread((area, acct, perms) => {
            this.loading = false;
          })
        )
        .catch(err => {
          this.loading = false;
          console.log(err);
        });
    },
    part01() {
      let that = this;
      return this.$axios({
        method: 'get',
        url: '/api/live/GetHotRoomNotice?api-version=2.0'
      })
        .then(response => {
          if (response.data.code == 0) {
            // this.response01 = response.data.data.concat();
            //this.data = response.data.data.concat();
            //this.data00 = response.data.data.splice(0, 4);
            this.data00 = response.data.data;

            for (let i = 0; i < response.data.data.length; i += 4) {
              this.liveForeshow.push(response.data.data.slice(i, i + 4));
            }
          }
        })
        .catch(error => {
          console.log(error);
        });
    },
    part02() {
      let that = this;
      return this.$axios({
        method: 'get',
        url: '/api/live/GetHotRoom'
      })
        .then(response => {
          if (response.data.code == 0) {
            this.response03 = response.data.data.concat();
          }
        })
        .catch(error => {
          console.log(error);
        });
    },
    part03() {
      let that = this;
      return this.$axios({
        method: 'get',
        url: '/api/live/GetHotRoomd'
      })
        .then(response => {
          if (response.data.code == 0) {
            this.response04 = response.data.data.concat();
          }
        })
        .catch(error => {
          console.log(error);
        });
    },
    // 弹窗
    get_data02() {
      let that = this;
      // this.loading01 = true
      // this.response02=[]
      this.$axios({
        method: 'get',
        url: '/api/live/GetHotRoomDetial',
        params: {
          author_id: that.author_id,
          page: that.page02,
          size: 5
        }
      })
        .then(response => {
          if (response.data.code == 0) {
            this.response02 = response.data.data;
            this.total = response.data.count;
            // this.loading01 = false
          } else {
            this.response02 = null;
            this.total = 0;
          }
        })
        .catch(error => {
          console.log(error);
        });
    },
    go_to_page01(id) {
      let router = this.$router.resolve({
        path: `/talent_main/liveDetailsRoot/${id}/0`
      });
      window.open(router.href, '_blank');
    },
    go_to_page02(id) {
      let router = this.$router.resolve({
        path: `/live/${id}`
      });
      window.open(router.href, '_blank');
    },
    // 跳转连接（直播预告---达人详情）
    goDetails(id) {
      let router = this.$router.resolve({
        path: `/talent_main/tdetails/${id}/${0}`
      });
      window.open(router.href, '_blank');
    }
  }
};
</script>
<style scoped lang="less">
.loading {
  margin-top: 20px;
}
.dialog {
  .page {
    padding-top: 30px;
    text-align: center;
    > p {
      font-size: 14px;
      color: #b5b5b5;
      text-align: center;
    }
    > div {
      margin-right: -10px;
    }
  }
  .table02 {
    width: 100%;
    tbody {
      tr {
        height: 78px;
      }
      td {
        div {
          font-family: DINAlternate-Bold;
          font-size: 15px;
          color: #222;
        }
      }
    }
    .td_06 {
      text-align: center;
      button {
        width: 88px;
        height: 32px;
        background-color: #fd7f2c;
        border-radius: 4px;
        font-size: 14px;
        font-weight: normal;
        font-stretch: normal;
        line-height: 30px;
        letter-spacing: 0px;
        color: #ffffff;
        text-align: center;
      }
    }

    .td_02,
    .td_05,
    .td_03,
    .td_04 {
      font-family: DINAlternate-Bold;
      font-size: 16px;
      text-align: center;
    }
    .td_03 {
      color: #1779ff;
    }
    .td_01 {
      width: 330px;
      > div {
        section {
          width: 210px;
          > div:first-child {
            display: flex;
            align-items: center;
            > span {
              max-width: 100%;
              width: auto;
              word-break: break-all;
              font-size: 14px;
              color: #222222;
              // font-weight: 600;
              margin-bottom: 5px;
            }

            img {
              height: 16px;
              margin-right: 6px;
              margin-top: -4px;
            }
          }
          > div:last-child {
            width: 100%;
            word-break: break-all;
            font-size: 14px;
            color: #888;
          }
        }
        > img {
          width: 50px;
          height: 50px;
          border-radius: 6px;
          margin-right: 12px;
          border: 1px solid #e5e5e5;
        }
      }
    }

    .td {
      > div {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
  .count {
    margin-top: 14px;
    margin-bottom: 14px;
    color: #888888;
    font-size: 14px;
    span {
      color: #fd7f2c;
    }
  }
  .header {
    > div:first-child {
      position: relative;
      > div {
        position: absolute;
        right: 20px;
        bottom: 12px;
        width: 18px;
        height: 18px;
        background-image: linear-gradient(90deg, #ff295d 1%, #fa4fa2 100%),
          linear-gradient(#ffffff, #ffffff);
        background-blend-mode: normal, normal;
        border-radius: 6px 0 4px 0;
        font-size: 12px;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      > img {
        width: 57px;
        height: 57px;
        box-sizing: border-box;
        margin-right: 15px;
        border-radius: 50%;
      }
    }
    > div:last-child {
      flex: 1;
      height: 57px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      > p:nth-child(1) {
        font-size: 16px;
        font-weight: 600;
        color: #222222;
        > img {
          width: 16px;
          margin-left: 4px;
          vertical-align: -2px;
        }
      }
      > p:nth-child(2) {
        width: 300px;
        font-size: 14px;
        color: #888;
        margin-top: 4px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
}

.time {
  font-size: 14px;
  color: #888;
  margin-bottom: 14px;
  margin-left: 6px;
  padding-top: 8px;
}
.ul03 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  li:nth-of-type(1) {
    margin-left: 0;
  }
  > li {
    width: 24.5%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 14px;
    section:nth-of-type(1) {
      display: flex;
      justify-content: space-between;
      .box_left {
        display: flex;
        div:nth-of-type(1) {
          position: relative;
          img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
          }
          .liveend {
            position: absolute;
            right: 0px;
            bottom: -2px;
            width: 18px;
            height: 18px;
            background-color: #b5b5b5;
            border-radius: 4px;
          }
        }
        div:nth-of-type(2) {
          margin-left: 10px;
          .dot {
            width: 6rem;
            font-size: 14px;
            color: #222;
            font-weight: 600;
            padding-top: 10px;
          }
          p {
            font-size: 14px;
            color: #888;
          }
        }
      }
      .box_right {
        width: 98px;
        height: 30px;
        line-height: 30px;
        padding-bottom: 2px;
        border-radius: 4px;
        border: 1px solid #fd7f2c;
        margin-top: 8px;
        text-align: center;
        button {
          font-size: 14px;
          color: #fd7f2c;
          white-space: nowrap;
        }
      }
      .box_right:hover {
        border: 1px solid #ff924b;
        button {
          color: #ff924b;
        }
      }
    }
    .num {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #efefef;
      padding: 0 10px;
      box-sizing: border-box;
      li {
        text-align: center;
        padding-top: 20px;
        p:nth-of-type(1) {
          font-family: DINAlternate-Bold;
          font-size: 20px;
          color: #222222;
        }
        p:nth-of-type(2) {
          font-size: 12px;
          color: #888;
          padding-bottom: 20px;
        }
      }
    }
    .pointer {
      text-align: center;
      font-size: 14px;
      color: #555;
      padding: 15px 0 0 0;
    }
  }
}
.pointer:hover {
  color: #ff924b !important;
}
.ul02 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  li:nth-of-type(1),
  li:nth-of-type(5) {
    margin-left: 0;
  }
  > li {
    width: 24.5%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
    > p:nth-child(4) {
      font-size: 14px;
      color: #888;
      text-align: center;
      margin-top: 15px;
      i {
        font-weight: 600;
        display: none;
      }
    }
    > ul {
      width: 100%;
      display: flex;
      border-bottom: 1px solid #efefef;
      justify-content: space-between;
      flex-wrap: nowrap;
      padding: 0 10px;
      box-sizing: border-box;
      li {
        text-align: center;
        > p:nth-child(1) {
          font-family: DINAlternate-Bold;
          font-size: 20px;
          color: #222222;
        }
        > p:nth-child(2) {
          font-size: 12px;
          color: #888888;
          margin-bottom: 20px;
        }
      }
    }
    > p {
      width: 100%;
      text-align: center;
      font-size: 14px;
      color: #555;
      padding: 15px 0 0;
      > button:first-child {
        width: 100px;
        border-radius: 4px;
        box-sizing: border-box;
        margin-right: 6%;
        font-size: 14px;
        line-height: 34px;
        padding-bottom: 2px;
        border: 1px solid #1779ff;
        color: #1779ff;
      }
    }
    > section:first-child {
      width: 100%;
      height: 70px;
      overflow: hidden;
      display: flex;
      justify-content: space-between;
      box-sizing: border-box;
      .daping {
        display: flex;
        > div:first-child {
          position: relative;
          > div {
            position: absolute;
            right: 10px;
            bottom: 20px;
            width: 18px;
            height: 18px;
            background-image: linear-gradient(90deg, #ff295d 1%, #fa4fa2 100%),
              linear-gradient(#ffffff, #ffffff);
            background-blend-mode: normal, normal;
            border-radius: 4px;
            font-size: 12px;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
          }
          > img {
            width: 50px;
            height: 50px;
            box-sizing: border-box;
            margin-right: 10px;
            border-radius: 50%;
            border: 2px solid #ff295d;
          }
        }
        > div:last-child {
          width: 100%;
          height: 57px;
          overflow: hidden;
          display: flex;
          flex-direction: column;
          justify-content: center;
          > p:nth-child(1) {
            width: 6rem;
            font-size: 14px;
            font-weight: 600;
            color: #222222;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            > img {
              width: 16px;
              margin-left: 4px;
              vertical-align: -2px;
            }
          }
          > p:nth-child(2) {
            width: 100%;
            font-size: 14px;
            color: #888;
            line-height: 19px;
          }
          > p:nth-child(3) {
            font-size: 14px;
            color: #888;
          }
        }
      }
      > p:hover {
        background: #ff924b !important;
        button {
          background: #ff924b !important;
        }
      }
      > p {
        width: 100px;
        height: 34px;
        line-height: 34px;
        // padding-bottom: 2px;
        border-radius: 4px;
        // border: 1px solid #fd7f2c;
        margin-top: 8px;
        text-align: center;
        background: #fd7f2c;
        button {
          color: #fff;
          font-size: 14px;
          background: #fd7f2c !important;
        }
      }
    }
  }
}
.see_more {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  text-align: center;
  color: #1779ff;
}
.ul01 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  li:nth-of-type(1) {
    margin-left: 0;
  }
  li {
    width: 24.5%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 14px;
    > p:nth-child(3) {
      font-size: 14px;
      color: #555;
      text-align: center;
      margin-top: 15px;
      i {
        font-weight: 600;
      }
    }

    > div:nth-child(2) {
      margin-top: 20px;
      text-align: center;
      box-sizing: border-box;
      height: 58px;
      line-height: 58px;
      width: 100%;
      background-color: #fff4ed;
      border-radius: 4px;
      > p:first-child {
        font-weight: 600;
        font-size: 24px;
        color: #fd7f2c;
        line-height: 58px;
        > img {
          width: 15px;
          margin-right: 8px;
          vertical-align: -1px;
        }
      }
    }
    > section:first-child {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      > div:first-child {
        position: relative;
        > div {
          position: absolute;
          right: 20px;
          bottom: 12px;
          width: 18px;
          height: 18px;
          background-image: linear-gradient(90deg, #ff295d 1%, #fa4fa2 100%),
            linear-gradient(#ffffff, #ffffff);
          background-blend-mode: normal, normal;
          border-radius: 6px 0 4px 0;
          font-size: 12px;
          color: #ffffff;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        > img {
          width: 50px;
          height: 50px;
          box-sizing: border-box;
          margin-right: 10px;
          border-radius: 50%;
        }
      }
      > div:last-child {
        width: 100%;
        height: 57px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        > p:nth-child(1) {
          font-size: 14px;
          font-weight: 600;
          width: 100%;
          color: #222222;
          > img {
            width: 16px;
            margin-left: 4px;
            vertical-align: -2px;
          }
        }
        > p:nth-child(2) {
          font-size: 14px;
          color: #888;
          line-height: 19px;
          width: 100%;
        }
        > p:nth-child(3) {
          font-size: 14px;
          color: #888;
        }
      }
    }
  }
}
.title:nth-of-type(1) {
  margin-top: 30px !important;
}
.title {
  margin-top: 20px;
  > p:first-child {
    span {
      position: relative;
      top: 2px;
      display: inline-block;
      width: 4px;
      height: 16px;
      background: #fd7f2c;
      border-radius: 2px;
    }
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 4px;
  }
  > p:last-child {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
  }
}
#live_house {
  padding: 20px;
  padding-top: 0px;
  min-height: 100vh;
  background-color: #f1f1f1;
}
.bottom {
  width: 100%;
  font-size: 14px;
  color: #888;
  text-align: center;
  line-height: 74px;
}
button:after {
  border: none;
}
img,
.dot {
  cursor: pointer;
}
.dot:hover {
  color: #ff924b !important;
}
// 弹窗底线~
.Popupline {
  font-size: 14px;
  color: #888;
  text-align: center;
  height: 40px;
  line-height: 40px;
  padding-top: 30px;
}
.finishLoading {
  position: relative;
  // top:50% !important;
  height: calc(100vh - 60px);
  .el-loading-mask {
    background-color: transparent !important;
  }
}
@media screen and (max-width: 1400px) {
  .ul02 {
    justify-content: start;
    li {
      width: 33%;
      margin-right: 0.5%;
      margin-bottom: 0.5%;
    }
    li:nth-of-type(3n) {
      margin-right: 0;
    }
  }
}
</style>
